html,
body {
  width: 100%;
  height: 100%;
  min-width: 800px;
}
/* 容器 */
.container {
  min-height: 100%;
  min-width: 100%;
  background: url("../img/bg.jpg") no-repeat;
  background-size: cover;
  position: relative;
}
/* 聊天室 */
.chatroom {
  width: 780px;
  height: 680px;
  background: #fff;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -340px;
  margin-left: -390px;
  opacity: 0.9;
  overflow: hidden;
}
/* 聊天室标题 */
.chat_title {
  height: 90px;
  line-height: 90px;
  text-align: center;
  font-size: 30px;
  color: #fb0;
  background: linear-gradient(90deg, #498fff, #21cffe);
  position: relative;
}
/* 昵称 */
.chat_nick {
  height: 30px;
  line-height: 30px;
  padding: 0 20px;
  background: #fff;
}
.chat_nick .nickname {
  float: left;
  width: 50%;
}
.showName {
  display: inline-block;
  height: 30px;
  min-width: 40px;
  cursor: pointer;
  vertical-align: top;
}
#nickname {
  width: 168px;
  height: 28px;
  padding-left: 5px;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  background: 0;
  outline: none;
  vertical-align: top;
  display: none;
}
.chat_nick .uploadTips {
  float: right;
  width: 50%;
  display: none;
}
.uploadName {
  display: inline-block;
  height: 30px;
  min-width: 40px;
  margin: 0 15px;
  vertical-align: top;
  color: #eebb11;
  max-width: 230px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.logout {
  width: 40px;
  height: 40px;
  background: url("../img/logout.png") no-repeat;
  background-position: center center;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}
/* 内容 */
.chat_content {
  height: 458px;
  border-top: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
  overflow-y: auto;
}

/* 聊天内容 */
.content_left {
  float: left;
  width: 80%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.word_item {
  padding: 5px;
}
/* 提示 */
.tips {
  font-size: 12px;
  color: #eebb11;
  text-align: center;
}
.joinName {
  font-size: 14px;
  color: #f56c6c;
}
.Info_item {
  position: relative;
}
/* 自己说的话 */
.myInfo .headImg {
  position: static;
  float: right;
}
.myWord .right {
  float: right;
  max-width: 80%;
  padding: 5px;
  border: 1px solid #21cffe;
  border-radius: 5px;
  background: #498fff;
  color: #fff;
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
}
/* 其他人说的话 */
.hisWord .left {
  float: left;
  max-width: 80%;
  padding: 5px;
  border: 1px solid #eee;
  border-radius: 5px;
  background: #d2d2d2;
  color: #000;
  word-wrap: break-word;
  word-break: break-all;
  overflow: hidden;
}
.send_img,
.send_video,
.send_audio,
.send_file {
  max-width: 100%;
}
.send_file {
  display: inline-block;
  padding: 10px 10px 10px 30px;
  color: #181a18;
  border: 1px solid #909399;
  border-radius: 5px;
  background: url("../img/download.png") no-repeat;
  background-color: #d2d2d2;
  background-size: 20px 20px;
  background-position: 5px center;
}
/* 用户列表样式 */
.content_right {
  float: right;
  width: 20%;
  height: 100%;
  background: #d2d2d2;
  box-sizing: border-box;
  border-left: 1px solid #d2d2d2;
}
.userList {
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-bottom: 1px solid #fff;
}
.userInfo {
  height: 421px;
  overflow-y: auto;
}
.Info_item {
  height: 30px;
  line-height: 30px;
  padding-left: 30px;
  color: #498fff;
  cursor: pointer;
  position: relative;
}
.Info_item:hover {
  background-color: #21cffe;
}
.headImg {
  width: 30px;
  height: 30px;
  background: url("../img/headImg.png") no-repeat;
  background-size: 20px 20px;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
}
.Nickname {
  width: 125px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/* 发送 */
.chat_send {
  height: 100px;
}
/* 工具 */
.send_tools {
  height: 20px;
  border-bottom: 1px solid #000;
}
.toolsItem {
  float: left;
  width: 20px;
  height: 20px;
  margin-left: 20px;
  cursor: pointer;
}
.sendImg {
  background: url("../img/sendImg.png") no-repeat;
  background-position: center center;
}
.sendAudio {
  background: url("../img/sendAudio.png") no-repeat;
  background-position: center center;
}
.sendVideo {
  background: url("../img/sendVideo.png") no-repeat;
  background-position: center center;
}
.sendFile {
  background: url("../img/sendFile.png") no-repeat;
  background-position: center center;
}
/* 输入 */
.send_input {
  height: 79px;
}
.sendInput {
  float: left;
  width: 80%;
  height: 100%;
  position: relative;
}
.sendInputTips {
  width: 100px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #f56c6c;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -50px;
  z-index: 10;
  cursor: not-allowed !important;
  display: none;
}
#sendInput {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 5px 15px;
  margin: 0;
  border: 0;
  outline: none;
  resize: none;
  background: 0;
}
#sendInput[disabled] {
  cursor: not-allowed !important;
}
.sendBtn {
  float: right;
  width: 20%;
  height: 100%;
  box-sizing: border-box;
  border-left: 1px solid #000;
  position: relative;
}
#sendBtn {
  width: 100px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #498fff;
  border-radius: 10px;
  box-shadow: 0 0 10px inset #fff;
  background: #498fff;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -50px;
  cursor: pointer;
}
.sendBtn_no {
  background: #3a3a3b !important;
  border: 1px solid #2b2b2c !important;
  cursor: not-allowed !important;
}
/* 提示 */
.message {
  padding: 20px;
  border-radius: 5px;
  background: #909399;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  display: none;
}
.close {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 20px;
  color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}
.message#error {
  background: #f56c6c;
}
.message#normal {
  background: #909399;
}
.message#success {
  background: #67c23a;
}
/* 滚动条 */
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #535353;
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #ededed;
}
